package td.pt.widget.cell;

import td.domain.Topic;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.uibinder.client.UiRenderer;

public class TopicListing extends AbstractCell<Topic> {

	interface TopicListingUiRenderer extends UiRenderer {
		void render(SafeHtmlBuilder sb, Topic topic);
	}

	private static TopicListingUiRenderer renderer = GWT
			.create(TopicListingUiRenderer.class);

	public TopicListing() {
	}

	@Override
	public void render(Context context, Topic topic, SafeHtmlBuilder builder) {
		renderer.render(builder, topic);
	}

}
